﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class ChangeNamePanel : BasePanel<ChangeNamePanel>
{
    public InputField inputName;
    public Button btnSubmit;

    void Start()
    {
        this.Hide();
        btnSubmit.onClick.AddListener(()=> {
            GamePanel.Instance.SetNickName(inputName.text);
            this.Hide();
        });
    }
}
